<template>
  <div>
    <div >
      <el-link type="primary" @click="redirect">{{ customerSource[data.customerId] }}</el-link>
    </div>
  </div>
</template>


<script>
    import {ajax} from "@/store/yg/common/utils";
    import merge from "webpack-merge"

    export default {
        props: [
            'row', 'data', 'more'
        ],
        data() {
            return {
              customerSource: {},
            }
        },
        created() {

        },
        mounted() {
          this.customerSource = this.$store.state.main.entry.sources["customerSource"];
        },
        methods: {
          redirect(){
            console.log(this.$router)
            this.$router.push({ query:merge({},{'pid':this.data.customerId}) });
            window.location.reload(true);
          }
        }
    }
</script>
